package com.xcgame.superswiperefreshlayoutdemo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.xcgame.ssrl.SuperListView;
import com.xcgame.ssrl.SuperRecyclerView;

/**
 * Created by Administrator on 2018/2/12.
 */

public class Main11Activity extends AppCompatActivity {

    private SuperListView srv_content;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main11);

        srv_content = findViewById(R.id.srv_content);

        srv_content.setAdapter(new TestAdapter());

    }

    private class TestAdapter extends BaseAdapter {

        @Override
        public int getCount() {
            return 20;
        }

        @Override
        public Object getItem(int i) {
            return null;
        }

        @Override
        public long getItemId(int i) {
            return 0;
        }

        @Override
        public View getView(int i, View view, ViewGroup viewGroup) {

            view = LayoutInflater.from(Main11Activity.this).inflate(R.layout.item_test, viewGroup, false);

            return view;
        }
    }

}
